import 'package:flutter/services.dart';
import 'package:schoollifedemo/channel/channel_name.dart';

class ChannelRegister {
  MethodChannel? commonChannel;
  MethodChannel? homeChannel;
  MethodChannel? chatChannel;
  MethodChannel? personalChannel;


  void init() {
    commonChannel = const MethodChannel(CommonChannel.name);
    homeChannel = const MethodChannel(HomeChannel.name);
    chatChannel = const MethodChannel(ChatChannel.name);
    personalChannel = const MethodChannel(PersonalChannel.name);

  }

  void dispose() {
    commonChannel = null;
    homeChannel = null;
    chatChannel = null;
    personalChannel = null;
  }
}

